package consumer;

import cn.shu.DemoService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                new String[] { "spring.xml" });

        DemoService demoService = (DemoService)context.getBean("demoService");
        demoService.sayHello("小青");
    }
}
